home *** CD-ROM | disk | FTP | other *** search
- class §#109§ extends MovieClip
- {
- var speed = 6;
- var letterWidth = 11;
- function §#109§()
- {
- super();
- this["#245"] = 0;
- this.marqueeWidth = this._width;
- this["#50"] = new Array();
- this["#82"]();
- }
- function §#82§()
- {
- this["#45"]();
- }
- function §#45§()
- {
- this["#312"] = "";
- var _loc2_ = undefined;
- while(this["#50"].length > 0)
- {
- _loc2_ = this["#50"].pop();
- _loc2_.removeMovieClip();
- }
- }
- function §#254§(§#472§)
- {
- this["#312"] = §#472§;
- this["#45"]();
- var _loc2_ = 0;
- while(_loc2_ < §#472§.length)
- {
- this.addLetter(§#472§.charAt(_loc2_));
- _loc2_ = _loc2_ + 1;
- }
- }
- function addLetter(letter)
- {
- var _loc3_ = this.getNextHighestDepth();
- var _loc2_ = this.attachMovie("Scoreboard Letter MC","letter_" + _loc3_ + "_" + letter,_loc3_);
- _loc2_.setColor(eval("#5")["#81"]);
- _loc2_.draw(letter);
- _loc2_._x = this.marqueeWidth + this["#50"].length * this.letterWidth;
- this["#50"].push(_loc2_);
- }
- function setVisible(§#473§)
- {
- if(!§#473§)
- {
- this["#45"]();
- return undefined;
- }
- if(this["#50"].length > 0)
- {
- if(this["#245"] + 25 < getTimer())
- {
- this["#245"] = getTimer();
- var _loc3_ = this["#50"].length;
- var _loc2_ = 0;
- while(_loc2_ < _loc3_)
- {
- this["#50"][_loc2_]._x -= this.speed;
- _loc2_ = _loc2_ + 1;
- }
- if(this["#50"][_loc3_ - 1]._x < - this["#50"][_loc3_ - 1]._width)
- {
- this["#45"]();
- }
- }
- }
- }
- }
-